package marioarena;

import java.util.TimerTask;

/**
 * TimerTask executing a refresh of the server list, removing all servers that were updated too long ago.
 *
 */
public class RefreshServersTimerTask extends TimerTask {

	@Override
	public void run() {
		// Remove expired gameservers every time this task is executed.
		DbConnection dbConnection = new DbConnection();
		dbConnection.expireGameservers();
	}

}
